﻿using MongoDB.Bson.Serialization.Attributes;
using System.Collections.Generic;

namespace ApiManage.Models.MongoMappings.Sys
{
    /// <summary>
    /// 
    /// </summary>
    public class SysRole : BaseMongoRecord
    {
        /// <summary>
        /// 
        /// </summary>
        public string RoleName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [BsonIgnore]
        public List<SysMenu> RoleMenu { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> RoleMenuIds { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> RoleButtonIds { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> RoleColumnIds { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int? Mark { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    public class SysRoleExtend : SysRole
    {
        /// <summary>
        /// 
        /// </summary>
        public new string Id { get; set; }
    }
}
